<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><%= title %></title>
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style ref="">
        .box{
            display: -webkit-flex; /* Safari */
            display: flex;
            justify-content:center;
            align-items:center;
        }
    </style>
</head>
<body style="text-align: center">
<h3>注册</h3>
<br>
<div style="width: 250px;margin: auto auto">
<form class="bs-example bs-example-form" action="/regist" role="form" method="post">
    <div class="input-group">
        <span class="input-group-addon">用户名</span>
        <input type="text" class="form-control" name="userName">
    </div>
    <div class="input-group" style="margin-top: 10px;">
        <span class="input-group-addon">密码</span>
        <input type="password" class="form-control" name="password">
    </div>
    <p style="color: red;"><%= error %></p>
    <button type="submit" class="btn btn-primary" style="width: 100px;height: 35px">注册</button>
    <button type="button" onclick="window.location.href='/login'" class="btn btn-danger" style="width: 100px;height: 35px">返回</button>
</form>
</div>
</body>
</html>